﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ViewStudentResult.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.ViewStudentResult" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #dateText
        {
            height: 17px;
            margin-bottom: 5px;
        }
        .style1
        {
            height: 21px;
        }
        .style2
        {
            width: 23px;
        }
        .style3
        {
            width: 81px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div align="center">
        <fieldset style="width: 800px; height: 800px;">
            <legend style="color: magenta">Student Information </legend>
            <fieldset style="width: 300px; height: 125px;">
                <table>
                    <tr>
                        <td>
                            Regno
                        </td>
                        <td>
                            <asp:TextBox ID="regNoTextBox" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="studentSearchButton" runat="server" Text="Search" OnClick="studentSearchButton_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>
                            <asp:TextBox ID="studentNameTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email
                        </td>
                        <td>
                            <asp:TextBox ID="emailTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Department
                        </td>
                        <td>
                            <asp:TextBox ID="departmentTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Label ID="departmentIdLabel" runat="server" Visible="False"></asp:Label>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <div align="center">
                <table>
                    <tr>
                        <td class="style3">
                            <asp:Label ID="resultAsOfLabel" runat="server"></asp:Label>
                            &nbsp;
                            <td class="style2">
                                <asp:Label ID="dateLabel" runat="server"></asp:Label>
                            </td>
                            <td>
                                &nbsp;&nbsp;
                                <asp:Label ID="timeLabel" runat="server"></asp:Label>
                            </td>
                    </tr>
                </table>
            </div>
            <div>
                <fieldset style="width: 650px; height: 250px;">
                    <legend style="text-decoration: purple;">Result Summary</legend>
                    <table>
                        <tr>
                            <td>
                                No Of Ennrolled Courses
                            </td>
                            <td>
                                <asp:TextBox ID="noOfEnrollCourseTextBox" runat="server" Enabled="False" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="No of Cpmpleted Courses"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="noPfCompletedCourseTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="No of Remaining "></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="noOfCourseRemainingTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Total Credit of Ennroll Courses
                            </td>
                            <td>
                                <asp:TextBox ID="totalCreditEnrollCourseTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Completed Credit
                            </td>
                            <td>
                                <asp:TextBox ID="completedCreditTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Remaining Credit
                            </td>
                            <td>
                                <asp:TextBox ID="remainingCreditTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                <asp:Label ID="Label11" runat="server" Text="Cgpa"></asp:Label>
                            </td>
                            <td class="style1">
                                <asp:TextBox ID="cgpaTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                            <td class="style1">
                                <asp:Label ID="Label2" runat="server" Text="Grade Letter"></asp:Label>
                            </td>
                            <td class="style1">
                                <asp:TextBox ID="gradeLetterTextBox" runat="server" ReadOnly="True"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:Label ID="certificateConfomationMessageLabel" runat="server"></asp:Label>
                </fieldset>
            </div>
            <div>
                <fieldset style="width: 580px; height: 250px;">
                    <legend style="text-decoration: blueviolet;">Details</legend>
                    <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="245px" Width="570px">
                        <asp:GridView ID="courseGridView" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84"
                            BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"
                            Width="563px">
                            <Columns>
                                <asp:BoundField DataField="Code" HeaderText="Course Code" 
                                    SortExpression="Code" />
                                <asp:BoundField DataField="Credit" HeaderText="Credit" 
                                    SortExpression="Credit" />
                                <asp:BoundField DataField="GradePoint" HeaderText="Status/Grade" 
                                    SortExpression="GradePoint" />
                                <asp:BoundField DataField="GradeLetter" HeaderText="Garde" 
                                    SortExpression="GradeLetter" />
                            </Columns>
                            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#FFF1D4" />
                            <SortedAscendingHeaderStyle BackColor="#B95C30" />
                            <SortedDescendingCellStyle BackColor="#F1E5CE" />
                            <SortedDescendingHeaderStyle BackColor="#93451F" />
                        </asp:GridView>
                    </asp:Panel>
                </fieldset>
            </div>
        </fieldset>
    </div>
</asp:Content>
